package com.foreknow.demo5;

public class TestPerson {

    public static void main(String[] args) {
        Person person = new Person();
//        person.name = "tom"; 因为name属性是Person私有的，所以无法访问，可以通过set方法给属性设置值
        person.setName("tom");
//        person.age = 15;
        person.setAge(15);
//        person.height = 177;
        person.setHeight(177);
//        person.weight = 130;
        person.setWeight(130);
        person.info();
    }
}









